﻿<SharedResources>

  <AnimationCollection Name="ScaleUpThenDown">
    <ScaleAnimation StartValue="1" EndValue="1.05" Duration="0.2" TargetProperty="X"/>
    <ScaleAnimation StartValue="1" EndValue="1.05" Duration="0.2" TargetProperty="Y"/>
    <ScaleAnimation StartValue="1.05" EndValue="1" Duration="0.5" StartTime="0.2" TargetProperty="X"/>
    <ScaleAnimation StartValue="1.05" EndValue="1" Duration="0.5" StartTime="0.2" TargetProperty="Y"/>
  </AnimationCollection>
  
  <AnimationCollection Name="ScaleDownThenUp">
    <ScaleAnimation StartValue="1" EndValue="0.97" Duration="0.2" TargetProperty="X"/>
    <ScaleAnimation StartValue="1" EndValue="0.97" Duration="0.2" TargetProperty="Y"/>
    <ScaleAnimation StartValue="0.97" EndValue="1" Duration="0.5" StartTime="0.2" TargetProperty="X"/>
    <ScaleAnimation StartValue="0.97" EndValue="1" Duration="0.5" StartTime="0.2" TargetProperty="Y"/>
  </AnimationCollection>

  <AnimationCollection Name="RepeatedScaleUpThenDown">
    <!--initially push inwards so it feels like its responding to the tap-->
    <ScaleAnimation TargetProperty="X" StartValue="1" EndValue="0.96" StartTime="0.0" Duration="0.1">
      <QuadraticEase EasingMode="Out" />
    </ScaleAnimation>
    <ScaleAnimation TargetProperty="Y" StartValue="1" EndValue="0.96" StartTime="0.0" Duration="0.1">
      <QuadraticEase EasingMode="Out" />
    </ScaleAnimation>
   <!-- repeat in/out pulsing forever-->
    <ScaleAnimation TargetProperty="X" EndValue="1.02" StartTime="0.1" Duration="0.4" RepeatTime="0.8">
      <QuadraticEase EasingMode="Both" />
    </ScaleAnimation>
    <ScaleAnimation TargetProperty="Y" EndValue="1.02" StartTime="0.1" Duration="0.4" RepeatTime="0.8">
      <QuadraticEase EasingMode="Both" />
    </ScaleAnimation>
    <ScaleAnimation TargetProperty="X" EndValue="0.98" StartTime="0.5" Duration="0.4" RepeatTime="0.8">
      <QuadraticEase EasingMode="Both" />
    </ScaleAnimation>
    <ScaleAnimation TargetProperty="Y" EndValue="0.98" StartTime="0.5" Duration="0.4" RepeatTime="0.8">
      <QuadraticEase EasingMode="Both" />
    </ScaleAnimation>
  </AnimationCollection>

  <AnimationCollection Name="ReturnToStandardScale">
    <ScaleAnimation TargetProperty="X" EndValue="1" Duration="0.3">
      <QuadraticEase EasingMode="Out" />
    </ScaleAnimation>
    <ScaleAnimation TargetProperty="Y" EndValue="1" Duration="0.3">
      <QuadraticEase EasingMode="Out" />
    </ScaleAnimation>
  </AnimationCollection>

  <AnimationCollection Name="RepeatedScaleToggle">
    <!--initially push inwards so it feels like its responding to the tap-->
    <ScaleAnimation TargetProperty="X" EndValue="0.96" StartTime="0.0" Duration="0"/>
    <ScaleAnimation TargetProperty="Y" EndValue="0.96" StartTime="0.0" Duration="0"/>
    <!-- repeat in/out pulsing forever-->
    <ScaleAnimation TargetProperty="X" EndValue="1.00" StartTime="0.2" Duration="0" RepeatTime="0.6"/>
    <ScaleAnimation TargetProperty="Y" EndValue="1.00" StartTime="0.2" Duration="0" RepeatTime="0.6"/>
    <ScaleAnimation TargetProperty="X" EndValue="0.96" StartTime="0.5" Duration="0" RepeatTime="0.6"/>
    <ScaleAnimation TargetProperty="Y" EndValue="0.96" StartTime="0.5" Duration="0" RepeatTime="0.6"/>
  </AnimationCollection>

  <AnimationCollection Name="ReturnToStandardScaleInstantly">
    <ScaleAnimation TargetProperty="X" EndValue="1" Duration="0"/>
    <ScaleAnimation TargetProperty="Y" EndValue="1" Duration="0"/>
  </AnimationCollection>

  <AnimationCollection Name="LampPulse1">
    <VisibilityAnimation StartTime="0" EndValue="True"/>
    <OpacityAnimation StartTime="0.00" Duration="1.0" StartValue="1.0" EndValue="0.5">
      <StepEase Steps="15"/>
      <!--<QuadraticEase EasingMode="Out"/>-->
    </OpacityAnimation>
    <OpacityAnimation StartTime="1.00" Duration="1.0" StartValue="1.0" EndValue="0.5">
      <StepEase Steps="15"/>
      <!--<QuadraticEase EasingMode="Out"/>-->
    </OpacityAnimation>
    <OpacityAnimation StartTime="2.00" Duration="1.0" StartValue="1.0" EndValue="0.5">
      <StepEase Steps="15"/>
      <!--<QuadraticEase EasingMode="Out"/>-->
    </OpacityAnimation>
    <OpacityAnimation StartTime="3.00" Duration="2.0" StartValue="1.0" EndValue="0.0">
      <StepEase Steps="15"/>
      <!--<QuadraticEase EasingMode="Out"/>-->
    </OpacityAnimation>
    <ScaleAnimation   StartTime="0.00" Duration="1.0" StartValue="1.2" EndValue="0.6" TargetProperty="X">
      <StepEase Steps="15"/>
    </ScaleAnimation>
    <ScaleAnimation   StartTime="1.00" Duration="1.0" StartValue="1.2" EndValue="0.6" TargetProperty="X">
      <StepEase Steps="15"/>
    </ScaleAnimation>
    <ScaleAnimation   StartTime="2.00" Duration="1.0" StartValue="1.2" EndValue="0.6" TargetProperty="X">
      <StepEase Steps="15"/>
    </ScaleAnimation>
    <ScaleAnimation   StartTime="3.00" Duration="2.0" StartValue="1.2" EndValue="0.4" TargetProperty="X">
      <StepEase Steps="15"/>
    </ScaleAnimation>
    <ScaleAnimation   StartTime="0.00" Duration="1.0" StartValue="1.2" EndValue="0.6" TargetProperty="Y">
      <StepEase Steps="15"/>
    </ScaleAnimation>
    <ScaleAnimation   StartTime="1.00" Duration="1.0" StartValue="1.2" EndValue="0.6" TargetProperty="Y">
      <StepEase Steps="15"/>
    </ScaleAnimation>
    <ScaleAnimation   StartTime="2.00" Duration="1.0" StartValue="1.2" EndValue="0.6" TargetProperty="Y">
      <StepEase Steps="15"/>
    </ScaleAnimation>
    <ScaleAnimation   StartTime="3.00" Duration="2.0" StartValue="1.2" EndValue="0.4" TargetProperty="Y">
      <StepEase Steps="15"/>
    </ScaleAnimation>
    <VisibilityAnimation StartTime="5.00" EndValue="False"/>
  </AnimationCollection>

  
  <AnimationCollection Name="LampPulse2">
    <VisibilityAnimation StartTime="0.02" EndValue="False"/>
    <OpacityAnimation StartTime="0.02" EndValue="0" />
    <VisibilityAnimation StartTime="0.17" EndValue="True"/>
    <OpacityAnimation StartTime="0.17" Duration="1.0" StartValue="1.0" EndValue="0.5"><StepEase Steps="15"/><!--<QuadraticEase EasingMode="Out"/>--></OpacityAnimation>
    <OpacityAnimation StartTime="1.17" Duration="1.0" StartValue="1.0" EndValue="0.5"><StepEase Steps="15"/><!--<QuadraticEase EasingMode="Out"/>--></OpacityAnimation>
    <OpacityAnimation StartTime="2.17" Duration="1.0" StartValue="1.0" EndValue="0.5"><StepEase Steps="15"/><!--<QuadraticEase EasingMode="Out"/>--></OpacityAnimation>
    <OpacityAnimation StartTime="3.17" Duration="2.0" StartValue="1.0" EndValue="0.0"><StepEase Steps="15"/><!--<QuadraticEase EasingMode="Out"/>--></OpacityAnimation>
    <ScaleAnimation   StartTime="0.17" Duration="1.0" StartValue="1.2" EndValue="0.6" TargetProperty="X"><StepEase Steps="15"/></ScaleAnimation>
    <ScaleAnimation   StartTime="1.17" Duration="1.0" StartValue="1.2" EndValue="0.6" TargetProperty="X"><StepEase Steps="15"/></ScaleAnimation>
    <ScaleAnimation   StartTime="2.17" Duration="1.0" StartValue="1.2" EndValue="0.6" TargetProperty="X"><StepEase Steps="15"/></ScaleAnimation>
    <ScaleAnimation   StartTime="3.17" Duration="2.0" StartValue="1.2" EndValue="0.4" TargetProperty="X"><StepEase Steps="15"/></ScaleAnimation>
    <ScaleAnimation   StartTime="0.17" Duration="1.0" StartValue="1.2" EndValue="0.6" TargetProperty="Y"><StepEase Steps="15"/></ScaleAnimation>
    <ScaleAnimation   StartTime="1.17" Duration="1.0" StartValue="1.2" EndValue="0.6" TargetProperty="Y"><StepEase Steps="15"/></ScaleAnimation>
    <ScaleAnimation   StartTime="2.17" Duration="1.0" StartValue="1.2" EndValue="0.6" TargetProperty="Y"><StepEase Steps="15"/></ScaleAnimation>
    <ScaleAnimation   StartTime="3.17" Duration="2.0" StartValue="1.2" EndValue="0.4" TargetProperty="Y"><StepEase Steps="15"/></ScaleAnimation>
    <VisibilityAnimation StartTime="5.17" EndValue="False"/>
  </AnimationCollection>

  <AnimationCollection Name="LampPulse3">
    <VisibilityAnimation StartTime="0.02" EndValue="False"/>
    <OpacityAnimation StartTime="0.02" EndValue="0" />
    <VisibilityAnimation StartTime="0.33" EndValue="True"/>
    <OpacityAnimation StartTime="0.33" Duration="1.0" StartValue="1.0" EndValue="0.5"><StepEase Steps="15"/><!--<QuadraticEase EasingMode="Out"/>--></OpacityAnimation>
    <OpacityAnimation StartTime="1.33" Duration="1.0" StartValue="1.0" EndValue="0.5"><StepEase Steps="15"/><!--<QuadraticEase EasingMode="Out"/>--></OpacityAnimation>
    <OpacityAnimation StartTime="2.33" Duration="1.0" StartValue="1.0" EndValue="0.5"><StepEase Steps="15"/><!--<QuadraticEase EasingMode="Out"/>--></OpacityAnimation>
    <OpacityAnimation StartTime="3.33" Duration="2.0" StartValue="1.0" EndValue="0.0"><StepEase Steps="15"/><!--<QuadraticEase EasingMode="Out"/>--></OpacityAnimation>
    <ScaleAnimation   StartTime="0.33" Duration="1.0" StartValue="1.2" EndValue="0.6" TargetProperty="X"><StepEase Steps="15"/></ScaleAnimation>
    <ScaleAnimation   StartTime="1.33" Duration="1.0" StartValue="1.2" EndValue="0.6" TargetProperty="X"><StepEase Steps="15"/></ScaleAnimation>
    <ScaleAnimation   StartTime="2.33" Duration="1.0" StartValue="1.2" EndValue="0.6" TargetProperty="X"><StepEase Steps="15"/></ScaleAnimation>
    <ScaleAnimation   StartTime="3.33" Duration="2.0" StartValue="1.2" EndValue="0.4" TargetProperty="X"><StepEase Steps="15"/></ScaleAnimation>
    <ScaleAnimation   StartTime="0.33" Duration="1.0" StartValue="1.2" EndValue="0.6" TargetProperty="Y"><StepEase Steps="15"/></ScaleAnimation>
    <ScaleAnimation   StartTime="1.33" Duration="1.0" StartValue="1.2" EndValue="0.6" TargetProperty="Y"><StepEase Steps="15"/></ScaleAnimation>
    <ScaleAnimation   StartTime="2.33" Duration="1.0" StartValue="1.2" EndValue="0.6" TargetProperty="Y"><StepEase Steps="15"/></ScaleAnimation>
    <ScaleAnimation   StartTime="3.33" Duration="2.0" StartValue="1.2" EndValue="0.4" TargetProperty="Y"><StepEase Steps="15"/></ScaleAnimation>
    <VisibilityAnimation StartTime="5.33" EndValue="False"/>
  </AnimationCollection>
  
  <AnimationCollection Name="LampPulse4">
    <VisibilityAnimation StartTime="0.02" EndValue="False"/>
    <OpacityAnimation StartTime="0.02" EndValue="0" />
    <VisibilityAnimation StartTime="0.50" EndValue="True"/>
    <OpacityAnimation StartTime="0.50" Duration="1.0" StartValue="1.0" EndValue="0.5"><StepEase Steps="15"/><!--<QuadraticEase EasingMode="Out"/>--></OpacityAnimation>
    <OpacityAnimation StartTime="1.50" Duration="1.0" StartValue="1.0" EndValue="0.5"><StepEase Steps="15"/><!--<QuadraticEase EasingMode="Out"/>--></OpacityAnimation>
    <OpacityAnimation StartTime="2.50" Duration="1.0" StartValue="1.0" EndValue="0.5"><StepEase Steps="15"/><!--<QuadraticEase EasingMode="Out"/>--></OpacityAnimation>
    <OpacityAnimation StartTime="3.50" Duration="2.0" StartValue="1.0" EndValue="0.0"><StepEase Steps="15"/><!--<QuadraticEase EasingMode="Out"/>--></OpacityAnimation>
    <ScaleAnimation   StartTime="0.50" Duration="1.0" StartValue="1.2" EndValue="0.6" TargetProperty="X"><StepEase Steps="15"/></ScaleAnimation>
    <ScaleAnimation   StartTime="1.50" Duration="1.0" StartValue="1.2" EndValue="0.6" TargetProperty="X"><StepEase Steps="15"/></ScaleAnimation>
    <ScaleAnimation   StartTime="2.50" Duration="1.0" StartValue="1.2" EndValue="0.6" TargetProperty="X"><StepEase Steps="15"/></ScaleAnimation>
    <ScaleAnimation   StartTime="3.50" Duration="2.0" StartValue="1.2" EndValue="0.4" TargetProperty="X"><StepEase Steps="15"/></ScaleAnimation>
    <ScaleAnimation   StartTime="0.50" Duration="1.0" StartValue="1.2" EndValue="0.6" TargetProperty="Y"><StepEase Steps="15"/></ScaleAnimation>
    <ScaleAnimation   StartTime="1.50" Duration="1.0" StartValue="1.2" EndValue="0.6" TargetProperty="Y"><StepEase Steps="15"/></ScaleAnimation>
    <ScaleAnimation   StartTime="2.50" Duration="1.0" StartValue="1.2" EndValue="0.6" TargetProperty="Y"><StepEase Steps="15"/></ScaleAnimation>
    <ScaleAnimation   StartTime="3.50" Duration="2.0" StartValue="1.2" EndValue="0.4" TargetProperty="Y"><StepEase Steps="15"/></ScaleAnimation>
    <VisibilityAnimation StartTime="5.50" EndValue="False"/>
  </AnimationCollection>
  
  <AnimationCollection Name="LampPulse5">
    <VisibilityAnimation StartTime="0.02" EndValue="False"/>
    <OpacityAnimation StartTime="0.02" EndValue="0" />
    <VisibilityAnimation StartTime="0.67" EndValue="True"/>
    <OpacityAnimation StartTime="0.67" Duration="1.0" StartValue="1.0" EndValue="0.5"><StepEase Steps="15"/><!--<QuadraticEase EasingMode="Out"/>--></OpacityAnimation>
    <OpacityAnimation StartTime="1.67" Duration="1.0" StartValue="1.0" EndValue="0.5"><StepEase Steps="15"/><!--<QuadraticEase EasingMode="Out"/>--></OpacityAnimation>
    <OpacityAnimation StartTime="2.67" Duration="1.0" StartValue="1.0" EndValue="0.5"><StepEase Steps="15"/><!--<QuadraticEase EasingMode="Out"/>--></OpacityAnimation>
    <OpacityAnimation StartTime="3.67" Duration="2.0" StartValue="1.0" EndValue="0.0"><StepEase Steps="15"/><!--<QuadraticEase EasingMode="Out"/>--></OpacityAnimation>
    <ScaleAnimation   StartTime="0.67" Duration="1.0" StartValue="1.2" EndValue="0.6" TargetProperty="X"><StepEase Steps="15"/></ScaleAnimation>
    <ScaleAnimation   StartTime="1.67" Duration="1.0" StartValue="1.2" EndValue="0.6" TargetProperty="X"><StepEase Steps="15"/></ScaleAnimation>
    <ScaleAnimation   StartTime="2.67" Duration="1.0" StartValue="1.2" EndValue="0.6" TargetProperty="X"><StepEase Steps="15"/></ScaleAnimation>
    <ScaleAnimation   StartTime="3.67" Duration="2.0" StartValue="1.2" EndValue="0.4" TargetProperty="X"><StepEase Steps="15"/></ScaleAnimation>
    <ScaleAnimation   StartTime="0.67" Duration="1.0" StartValue="1.2" EndValue="0.6" TargetProperty="Y"><StepEase Steps="15"/></ScaleAnimation>
    <ScaleAnimation   StartTime="1.67" Duration="1.0" StartValue="1.2" EndValue="0.6" TargetProperty="Y"><StepEase Steps="15"/></ScaleAnimation>
    <ScaleAnimation   StartTime="2.67" Duration="1.0" StartValue="1.2" EndValue="0.6" TargetProperty="Y"><StepEase Steps="15"/></ScaleAnimation>
    <ScaleAnimation   StartTime="3.67" Duration="2.0" StartValue="1.2" EndValue="0.4" TargetProperty="Y"><StepEase Steps="15"/></ScaleAnimation>
    <VisibilityAnimation StartTime="5.67" EndValue="False"/>
  </AnimationCollection>
  
  <AnimationCollection Name="LampPulse6">
    <VisibilityAnimation StartTime="0.02" EndValue="False"/>
    <OpacityAnimation StartTime="0.02" EndValue="0" />
    <VisibilityAnimation StartTime="0.83" EndValue="True"/>
    <OpacityAnimation StartTime="0.83" Duration="1.0" StartValue="1.0" EndValue="0.5"><StepEase Steps="15"/><!--<QuadraticEase EasingMode="Out"/>--></OpacityAnimation>
    <OpacityAnimation StartTime="1.83" Duration="1.0" StartValue="1.0" EndValue="0.5"><StepEase Steps="15"/><!--<QuadraticEase EasingMode="Out"/>--></OpacityAnimation>
    <OpacityAnimation StartTime="2.83" Duration="1.0" StartValue="1.0" EndValue="0.5"><StepEase Steps="15"/><!--<QuadraticEase EasingMode="Out"/>--></OpacityAnimation>
    <OpacityAnimation StartTime="3.83" Duration="2.0" StartValue="1.0" EndValue="0.0"><StepEase Steps="15"/><!--<QuadraticEase EasingMode="Out"/>--></OpacityAnimation>
    <ScaleAnimation   StartTime="0.83" Duration="1.0" StartValue="1.2" EndValue="0.6" TargetProperty="X"><StepEase Steps="15"/></ScaleAnimation>
    <ScaleAnimation   StartTime="1.83" Duration="1.0" StartValue="1.2" EndValue="0.6" TargetProperty="X"><StepEase Steps="15"/></ScaleAnimation>
    <ScaleAnimation   StartTime="2.83" Duration="1.0" StartValue="1.2" EndValue="0.6" TargetProperty="X"><StepEase Steps="15"/></ScaleAnimation>
    <ScaleAnimation   StartTime="3.83" Duration="2.0" StartValue="1.2" EndValue="0.4" TargetProperty="X"><StepEase Steps="15"/></ScaleAnimation>
    <ScaleAnimation   StartTime="0.83" Duration="1.0" StartValue="1.2" EndValue="0.6" TargetProperty="Y"><StepEase Steps="15"/></ScaleAnimation>
    <ScaleAnimation   StartTime="1.83" Duration="1.0" StartValue="1.2" EndValue="0.6" TargetProperty="Y"><StepEase Steps="15"/></ScaleAnimation>
    <ScaleAnimation   StartTime="2.83" Duration="1.0" StartValue="1.2" EndValue="0.6" TargetProperty="Y"><StepEase Steps="15"/></ScaleAnimation>
    <ScaleAnimation   StartTime="3.83" Duration="2.0" StartValue="1.2" EndValue="0.4" TargetProperty="Y"><StepEase Steps="15"/></ScaleAnimation>
    <VisibilityAnimation StartTime="5.83" EndValue="False"/>
  </AnimationCollection>

</SharedResources>

